<div class="problemlist_item">
    <div class="header" id="status_filter_bar">
        筛选
    </div>
    <div class="body" id="status_filter" style="display: none; padding: 20px;">
        <form class="form form-inline" method="get" action="" id="status_filter_form">
            <table class="table table-nobordered">
                {% if asgn != None and asgn.hideProblemId %}
                {% else %}
                <tr>
                    <td width="80">题目ID</td>
                    <td><input name="problem_id" type="text" class="form-control" value="{{ problem_id | default:'' }}" placeholder="题目ID"/></td>
                </tr>
                {% endif %}
                <tr>
                    <td width="80">提交者</td>
                    <td>
                        <input name="author_id" type="text" class="form-control" value="{{ author_id | default:'' }}" placeholder="提交者的名称"/>
                        &nbsp;
                        <select name="author_type" class="form-control">
                            <option value="">学号/工号/ID</option>
                            <option value="[n]" {% if author_type == '[n]' %}selected{% endif %}>昵称</option>
                            <option value="[r]" {% if author_type == '[r]' %}selected{% endif %}>真实姓名</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td width="80">评测状态</td>
                    <td>
                    {% for f in flags %}
                        <a href="javascript:void(0)" dat-val="{{ f.0 }}" class="filter-flag label label-bordered{% if f.0 == flag %} label-primary{% else %} label-transparent{% endif %}">{{ f.1.title }}</a>&nbsp;&nbsp;
                    {% endfor %}
                    </td>
                    <input type="hidden" id="ipt-filter-flag" value="{{ flag }}" name="flag">
                </tr>
            </table>
            <hr>
            <input type="submit" class="btn btn-primary" value="执行筛选">
        </form>
    </div>
</div>
